The Dreamweaver JavaScript API > File manipulation functions > dreamweaver.createDocument() |
![]() ![]() ![]() |
Availability
Dreamweaver 2.0
Description
Opens a new document either in the same window or in a new window. The new document becomes the active document.
Note: This function can be called only from menus.xml or a command or Property Inspector file. If a behavior action or object tries to call this function, Dreamweaver displays an error message.
Arguments
{bOpenInSameWindow}
bOpenInSameWindow
is a Boolean value indicating whether to open the new document in the current window. If bOpenInSameWindow
is false
or omitted, or the function is called on the Macintosh, the new document opens in a separate window.
Returns
The document object for the newly created document. This is the same value returned by dreamweaver.getDocumentDOM()
.
Enabler
None.
![]() ![]() ![]() |